import request from '@/api/request'
// 添加或修改地址
function saveAddressInfo(data) {
    return request({
        url: '/address/saveAction',
        method: 'POST',
        data,
    })
}
// 添加或修改地址
function getAddressListInfo(data) {
    return request({
        url: '/address/getListAction',
        method: 'GET',
        data,
    })
}
// 删除地址
function removeAddressInfo(data) {
    return request({
        url: '/address/deleteAction',
        method: 'GET',
        data,
    })
}
// 收货地址详情
function addressInfo(data) {
    return request({
        url: '/address/detailAction',
        method: 'GET',
        data,
    })
}

export { saveAddressInfo, getAddressListInfo, removeAddressInfo, addressInfo }
